﻿using System;

namespace SBPweb.PROvibe.Client.Framework.Controls
{

    public class ContentControl : System.Windows.Controls.ContentControl
    {

        public ContentControl()
            : base()
        {
        }

        //public new object Content
        //{
        //    get
        //    {
        //        return base.Content;
        //    }
        //    set
        //    {
        //        object prev = base.Content;
        //        base.Content = value;
        //        OnContentChanged(prev, value);
        //    }
        //}

        public event EventHandler ContentChanged;

        protected override void OnContentChanged(object oldContent, object newContent)
        {
            if (ContentChanged != null)
            {
                ContentChanged(this, EventArgs.Empty);
            }
        }
    
    }

}